package lab.anoper.fsm.fsm;

import lombok.ToString;

/**
 * @author Yan Jiahong
 * Created at 2020/9/22
 */
@ToString
public enum  PaymentEvent {
    PAY_SUCCESS(0, "支付成功"),
    PAY_FAILED(1, "支付失败"),
    PAY_INITIALIZED_SUCCESS(2, "支付发起成功");

    private int code;
    private String desc;

    PaymentEvent(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
